package com.weipai.springboot.module.dao;

import com.weipai.springboot.model.Help;
import com.weipai.springboot.model.HelpCate;

import java.util.List;
import java.util.Map;

/**
 * @Author: 曹朋飞
 * @Date: 2019/01/10 16:29
 */
public interface HelpDao {
    int updateByPrimaryKeySelective(HelpCate helpCate);

    int insert(HelpCate helpCate);

    HelpCate selectByPrimaryKey(String id);

    int deleteByPrimaryKey(String id);

    List<HelpCate> list();

    int updateByPrimaryKeySelectiveHelp(Help help);

    int insertHelp(Help help);

    List<Map<String,Object>> listHelp(Integer start, Integer size, String type);

    Integer amountHelp(String type);

    Help selectByPrimaryKeyHelp(String id);

    int deleteByPrimaryKeyHelp(String id);

    List<Map<String,Object>> getHelpByCateId(String id);
}
